import { MessageInfo, OutputStatus } from './type';
export const getAiUrl = function (baseUrl: string, userId: string, token: string) {
    const dateTime = Date.now();
    const url = `${baseUrl}?userid=${userId}&token=${token}&from=webb&time=${dateTime}&usertype=h5`;
    return url;
};
export const splitCondition = function (info: MessageInfo) {
    if ([OutputStatus.OutputEnd, OutputStatus.OutputTimeout].includes(info.outputStatus)) {
        return true;
    }
    return false;
};
export function isFunction(func: unknown): func is (...args: any[]) => any {
    return typeof func === 'function';
}
